const path = require('path')
const CracoLessPlugin = require("craco-less")

module.exports = {
    webpack: {
        alias: {
            '@': path.resolve(__dirname, 'src')
        }
    },
    plugins: [
        {
            plugin: CracoLessPlugin,
            options: {
                lessLoaderOptions: {
                    lessOptions: {
                        // modifyVars: { "@primary-color": "#181616" },   //这个可以改变antd组件的默认颜色
                        javascriptEnabled: true
                    }
                }
            }
        }
    ]
}